#!/bin/bash
NAME=$1
BASE=$(basename $NAME .trace.log)
grep Start $NAME \
	| grep -v DBus \
	| perl -ne '/ (SQL[^:]*):.*: Start/ && print "'$BASE' $1\n"' \
	| sort | uniq -c \
	| sort -rn
